#pragma once
#include "mod.h"
#include "../../UM/um.client.h"
#include "../../USS/USSclient.h"
#include "../gui.menu.h"
#include "../gui.text.h"
#include "../gui.window.h"

#ifdef ADM
#define OFFSET 2
#else
#define OFFSET 0
#endif

namespace TOB {
  class UI_UM: public Mod {
   public:
    UI_UM(UIConfig &c);
    ~UI_UM();

    void run();

   protected:
    void status(String &msg);

    std::string roleToString(Role::Type role);
    std::string policyToString(Policy::Type policy);
    std::string stringToRole(std::string policy);
    std::string stringToPolicy(std::string policy);

    UIWindow *statusw;
    UIMenu *menum;
    UM::Client *um;

    std::string username;
    UIText *namet, *rolet, 
           *policyt, *passt;
  };
}
